﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OUserAdd.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.SysBasic.OUserAdd" %>

	<form id="Form1"  runat="server" action="sysbasic/OUserAdd.aspx?ajaxmethod=adduser" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
    <div class="pageContent">
    <div class="pageFormContent" layoutH="56">            
			<p>
				<label>登陆帐户：</label>
                <input type="text" name="UserName" class="required" alt="请输入员工工号"  />
			</p>
            <p>
				<label>登陆密码：</label>
                 <input type="text" name="PassWord" class="required" alt="初始密码和工号一样"  />
			</p>
            <div class="divider"></div> 
            <p>
				<label>真实姓名：</label>
                <input type="text" name="RealName" class="required" alt="请输入员工真实姓名"  />
			</p> 
              <p>
				<label>手机：</label>
                <input type="text" name="Mobile" class="" alt=""  />
			</p>  
            <p>
				<label>邮箱：</label>
                <input type="text" name="EMail" class="" alt=""  />
			</p> 
            
              <div class="divider"></div>
             <p>
				<label>部门：</label>
               <%=GetDepartmentSelect("Department", "")%>
			</p> 
            <%if (User.IsSuperAdmin)
              { %> 
            <p>
				<label>是否管理员：</label>
                <input type="checkbox" name="IsSuperAdmin" value="true" />
			</p>
               
           
            <p>
				<label>分配角色权限：</label>
                <select name="RoleId" class="required combox" alt="请选择角色">
                    <%=GetRoleList()%>
                </select>
                
			</p>
           <%}
              else
              { %>
              <input type="hidden" name="IsSuperAdmin" value="false" />
            <input type="hidden" name="RoleId" value="13" />
           <%} %>
    </div>
    
  <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
</div>
  
	
    </form>